Clover coverage report - bexee - 0.1
Coverage timestamp: Do Dez 16 2004 13:24:06 CET
file stats: LOC: 68   Methods: 8
NCLOC: 39   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
SwitchImpl.java - 66.7% 62.5% 64.7%
coverage coverage
 1   
 /*
 2   
  * $Id: SwitchImpl.java,v 1.1 2004/12/15 14:18:13 patforna Exp $
 3   
  *
 4   
  * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
 5   
  * Berne University of Applied Sciences
 6   
  * School of Engineering and Information Technology
 7   
  * All rights reserved.
 8   
  */
 9   
 package bexee.model.activity.impl;
 10   
 
 11   
 import java.util.ArrayList;
 12   
 import java.util.List;
 13   
 
 14   
 import bexee.core.ProcessController;
 15   
 import bexee.core.ProcessInstance;
 16   
 import bexee.model.BPELElementVisitor;
 17   
 import bexee.model.StandardAttributes;
 18   
 import bexee.model.activity.Activity;
 19   
 import bexee.model.activity.Switch;
 20   
 import bexee.model.elements.BpelCase;
 21   
 
 22   
 /**
 23   
  * This is a default implementation of the Swich activity interface.
 24   
  * 
 25   
  * @author Patric Fornasier
 26   
  * @author Pawel Kowalski
 27   
  * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:13 $
 28   
  */
 29   
 public class SwitchImpl extends AbstractActivity implements Switch {
 30   
 
 31   
     private List bpelCases;
 32   
 
 33   
     private Activity otherwiseActivity;
 34   
 
 35  4
     public SwitchImpl(StandardAttributes standardAttributes) {
 36  4
         super(standardAttributes);
 37  4
         bpelCases = new ArrayList();
 38   
     }
 39   
 
 40  4
     public void addCase(BpelCase bpelCase) {
 41  4
         bpelCases.add(bpelCase);
 42   
     }
 43   
 
 44  0
     public List getCases() {
 45  0
         return bpelCases;
 46   
     }
 47   
 
 48  4
     public void activity(Activity activity) {
 49  4
         setOtherwise(activity);
 50   
     }
 51   
 
 52  4
     public void setOtherwise(Activity activity) {
 53  4
         otherwiseActivity = activity;
 54   
     }
 55   
 
 56  0
     public Activity getOtherwise() {
 57  0
         return otherwiseActivity;
 58   
     }
 59   
 
 60  0
     public void accept(ProcessController controller, ProcessInstance instance)
 61   
             throws Exception {
 62  0
         controller.process(this, instance);
 63   
     }
 64   
 
 65  4
     public void accept(BPELElementVisitor elementVisitor) {
 66  4
         elementVisitor.visit(this);
 67   
     }
 68   
 }